#pragma once

#include <QDockWidget>
#include <QWidget>
#include <QDebug>
#include <QLabel>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QPushButton>
#include <baseWidget.h>


class DockWidget : public QWidget
{
    // Q_OBJECT
    friend class Task;
public:
    DockWidget(QWidget * parent = nullptr, const QString & title = "");
    ~DockWidget() {}

    void mouseDoubleClickEvent(QMouseEvent *event);

    void setWidget(BaseWidget * baseWidget)
    {
        m_dataShowWidget = baseWidget;
        // m_dataShowWidget->__setParent(this);
        // this->layout()->addWidget(m_dataShowWidget);
    }

    BaseWidget* getWidget()
    {
        return m_dataShowWidget;
    }


private:
    bool                m_isFullScreen          = false;
    QWidget *           m_parent                = nullptr;
    BaseWidget *        m_dataShowWidget        = nullptr;

};

